package com.gmail.hongyz.myfuse.demo.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

public class TraditionalFormSubmitController implements Controller {

	private static final Log log = LogFactory.getLog(TraditionalFormSubmitController.class);

	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		String t = request.getParameter("t");
		log.info("receive t: " + t);
		request.getRequestDispatcher("/demo/traditional-form-submit.jsp").forward(request, response);
		return null;
	}
	
}
